Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认字段不排序 #245

Closed
wants to merge 2 commits into from
Closed

默认字段不排序 #245

wants to merge 2 commits into from

Conversation

eden-yuan
Copy link
Contributor

What this PR does / why we need it?

Summary of your change

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@wenshao
Copy link
Member

wenshao commented Aug 31, 2022

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.13-SNAPSHOT/
请用2.0.13-SNAPSHOT版本验证,2.0.13版本预计在9月12日前发布。需要配置JSONType.alphabetic = true,比如

@JSONType(alphabetic=false)
public class SystemUser {
	private Integer id;
	private String code;
	private String password;
}

这个取决于编译器的行为,顺序不确定的

@eden-yuan
Copy link
Contributor Author

eden-yuan commented Sep 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants